// javamaps
// Copyright (c) 2010 Lup Gratian
package Rendering.Info;
import Core.*;
import Rendering.*;

public final class StreetPointInfo implements IObjectInfo {
    private IRenderer parent_;
    private Street street_;
    private int pointIndex_;
    private Point position_;
    private Coordinates coordinates_;

    /*
     * Constructori.
     */
    public StreetPointInfo(Street street, IRenderer parent) {
        street_ = street;
        parent_ = parent;
    }

    public StreetPointInfo(Street street, IRenderer parent,
                      Point position, Coordinates coord, int index) {
        this(street, parent);
        position_ = position;
        coordinates_ = coord;
        pointIndex_ = index;
    }

    /*
     * Metode publice.
     */
    public InfoType Type() { return InfoType.StreetPoint; }
    public IRenderer Parent() { return parent_; }
    public Street Street() { return street_; }

    public Point Position() { return position_; }
    public void SetPosition(Point value) { position_ = value; }

    public Coordinates Coordinates() { return coordinates_; }
    public void SetPosition(Coordinates value) { coordinates_ = value; }

    public int PointIndex() { return pointIndex_; }
    public void SetPointIndex(int value) { pointIndex_ = value; }
}